package com.ggqq.springcloud;

import com.ggqq.myrule.GgqqRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

//ribbon和eureka整合之后，客户端可以直接调用，不用关心ip地址和端口号
//主启动类
@SpringBootApplication
@EnableEurekaClient
@RibbonClient(name = "SPRINGCLOUD-PROVIDER-DEPT",configuration = GgqqRule.class)//在微服务启动的时候加载自定义Ribbon类
public class DeptConsumer_8080 {
    public static void main(String[] args) {
        SpringApplication.run(DeptConsumer_8080.class,args);
    }
}
